<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="./js/jquery.js"></script>
    <style>
       img{
        width: 100px;
       }
    </style>
  </head>
  <body>
    <input type="text" value="刘备" /> <br>
    <input type="text" value="关羽" />  <br>
    <input type="text" value="张伟" />  <br>
    <input type="checkbox" name="" id="">
    <div>数据存储</div>
     <img src="./img/apple.png" alt="这是个图片">
     
     <button>获取文本值</button>
    <script>
      $(function () {
        $("div").data("uname","lili")
        console.log($("div").data("uname"))
      });
    </script>
  </body>
</html>
